package com.bytecodezz.app.photoshop.loader.base

import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.net.Uri
import java.io.File

/**
 * 加载图片可接受的类型接口
 * 支持的图片加载类型都在这里了
 */
interface ModelTypes<T> {
    fun load(bitmap: Bitmap): T

    fun load(drawable: Drawable): T

    fun load(url: String): T

    fun load(uri: Uri): T

    fun load(file: File): T

    fun load(resourceId: Int): T

    fun load(model: ByteArray): T

}